class CompanyInfo {
  String sId;
  String baseCorporation;
  String baseEmail;
  String baseIndustry;
  String baseName;
  String baseRegisterAddress;
  String baseRegisterAmt;
  String baseRegisterTime;
  String baseStatus;
  String baseTaxpayerNumber;
  String baseTelephone;
  String baseWww;
  String code;
  String industryTag;
  String intro;
  String logo = "https://static.kuaimayoupin.com/7173382932132624.jpg";

  CompanyInfo(
      {this.sId,
      this.baseCorporation,
      this.baseEmail,
      this.baseIndustry,
      this.baseName,
      this.baseRegisterAddress,
      this.baseRegisterAmt,
      this.baseRegisterTime,
      this.baseStatus,
      this.baseTaxpayerNumber,
      this.baseTelephone,
      this.baseWww,
      this.code,
      this.industryTag,
      this.intro,
      this.logo});

  CompanyInfo.fromJson(Map<String, dynamic> json) {
    sId = json['_id'];
    baseCorporation = json['base_corporation'] ?? '--';
    baseEmail = json['base_email'] ?? '--';
    baseIndustry = json['base_industry'] ?? '--';
    baseName = json['base_name'] ?? '--';
    baseRegisterAddress = json['base_register_address'] ?? '--';
    baseRegisterAmt = json['base_register_amt'] ?? '--';
    baseRegisterTime = json['base_register_time'] ?? '--';
    baseStatus = json['base_status'] ?? '--';
    baseTaxpayerNumber = json['base_taxpayer_number'] ?? '--';
    baseTelephone = json['base_telephone'] ?? '--';
    baseWww = json['base_www'] ?? '--';
    code = json['code'] ?? '--';
    industryTag = json['industryTag'] ?? '--';
    intro = json['intro'] ?? '--';
    logo =
        json['logo'] ?? 'https://static.kuaimayoupin.com/5549124825024847.png';
  }

  Map<String, dynamic> toJson() {
    final Map<String, dynamic> data = new Map<String, dynamic>();
    data['_id'] = this.sId;
    data['base_corporation'] = this.baseCorporation ?? '--';
    data['base_email'] = this.baseEmail ?? '--';
    data['base_industry'] = this.baseIndustry ?? '--';
    data['base_name'] = this.baseName ?? '--';
    data['base_register_address'] = this.baseRegisterAddress ?? '--';
    data['base_register_amt'] = this.baseRegisterAmt ?? '--';
    data['base_register_time'] = this.baseRegisterTime ?? '--';
    data['base_status'] = this.baseStatus ?? '--';
    data['base_taxpayer_number'] = this.baseTaxpayerNumber ?? '--';
    data['base_telephone'] = this.baseTelephone ?? '--';
    data['base_www'] = this.baseWww ?? '--';
    data['code'] = this.code ?? '--';
    data['industryTag'] = this.industryTag ?? '--';
    data['intro'] = this.intro ?? '--';
    data['logo'] = this.logo;
    return data;
  }
}
